using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Transaction;

namespace Thaire.Investment.Repository.Mapping
{

    class LoansExtrainstallmentMap : ClassMap<LoansExtrainstallment>
    {

        public LoansExtrainstallmentMap()
        {
            Table("LOANS_EXTRAINSTALLMENT");
            Id(x => x.LoansExtrainstallmentID, "LOANS_EXTRAINSTALLMENT_ID").GeneratedBy.Identity();

            Map(x => x.LoansHeaderID, "LOANS_HEADER_ID");
            Map(x => x.InterestID, "INTEREST_ID");
            Map(x => x.AmortizeID, "AMORTIZE_ID");
            Map(x => x.NewInstallment, "NEW_INSTALLMENT");
            Map(x => x.ExtrainstallmentDate, "EXTRAINSTALLMENT_DATE");
            Map(x => x.ExtrainstallmentRate, "EXTRAINSTALLMENT_RATE");
            Map(x => x.CloseAccountDate, "CLOSE_ACCOUNT_DATE");
            Map(x => x.CloseAccountInterest, "CLOSE_ACCOUNT_INTEREST");
            Map(x => x.CloseAccountPrinciple, "CLOSE_ACCOUNT_PRINCIPLE");
            Map(x => x.CloseAccountTotal, "CLOSE_ACCOUNT_TOTAL");
            Map(x => x.CreateDate, "CREATE_DATE");
            Map(x => x.CreateBY, "CREATE_BY");
            Map(x => x.ModifyDate, "MODIFY_DATE");
            Map(x => x.ModifyBY, "MODIFY_BY");

        }


    }

}